<template>
  <el-row class="left-box">
    <el-col :span="24">
      <!-- 头部标题 -->
      <div class="top1">
        <div class="left-box-top">
          <img class="tbimg" src="../assets/t1.png" />
        </div>
        <h5>非翔教育</h5>
      </div>
      <!-- 头部标题结束 -->
      <!-- 下面导航内容 -->
      <el-menu class="el-menu-vertical-demo">
        <router-link to="/Home" class="router first" exact-active-class="hs">
          <img class="img" src="../assets/t2.png" alt />
          首页
        </router-link>
        <el-submenu index="1" class="router">
          <template slot="title">
            <span class="title1">
              <img class="img1" src="../assets/t3.png" alt />
              文章管理
            </span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="1-1">
              <router-link to="/slideshow" class="router1" tag="span">轮播图管理</router-link>
            </el-menu-item>
            <el-menu-item index="1-2">
              <router-link to="/course" class="router1" tag="span">课程管理</router-link>
            </el-menu-item>
            <el-menu-item index="1-3">
              <router-link to="/education" class="router1" tag="span">教育头条</router-link>
            </el-menu-item>
            <el-menu-item index="1-4">
              <router-link to="/activity" class="router1" tag="span">活动列表</router-link>
            </el-menu-item>
            <el-menu-item index="1-5">
              <router-link to="/star" class="router1" tag="span">明星教师</router-link>
            </el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <router-link to="/orderForm" class="router" exact-active-class="hs">
          <img class="img" src="../assets/t4.png" alt />
          订单管理
        </router-link>
        <router-link to="/user" class="router" exact-active-class="hs">
          <img class="img" src="../assets/t5.png" alt />
          用户管理
        </router-link>
        <router-link to="/finance" class="router" exact-active-class="hs">
          <img class="img" src="../assets/t6.png" alt />
          财务管理
        </router-link>
        <router-link to="/service" class="router" exact-active-class="hs">
          <img class="img" src="../assets/t7.png" alt />
          个人资料
        </router-link>
        <el-submenu index="2" class="router">
          <template slot="title">
            <span class="title1">
              <img class="img1" src="../assets/t8.png" alt />
              设置
            </span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="1-1">
              <router-link to="/general" class="router1" tag="span">通用设置</router-link>
            </el-menu-item>
            <el-menu-item index="1-2">
              <router-link to="/gy" class="router1" tag="span">关于我们</router-link>
            </el-menu-item>
            <el-menu-item index="1-3">
              <router-link to="/essay" class="router1" tag="span">员工管理</router-link>
            </el-menu-item>
            <el-menu-item index="1-4">
              <router-link to="/role" class="router1" tag="span">角色管理</router-link>
            </el-menu-item>
            <el-menu-item index="1-5">
              <router-link to="/operation" class="router1" tag="span">操作日志</router-link>
            </el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
      <!-- 导航内容结束 -->
    </el-col>
  </el-row>
</template>

<script>
export default {};
</script>

<style  scoped>
.el-menu {
  border: 0px;
}
.top1 {
  display: flex;
  margin: 22px 0 40px 30px;
}
.left-box-top {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    270deg,
    rgba(204, 153, 255, 1) 0%,
    rgba(204, 153, 255, 1) 0%,
    rgba(145, 55, 243, 1) 100%,
    rgba(145, 55, 243, 1) 100%
  );
  border-radius: 5px;
}
.top1 h5 {
  font-family: "思源黑体 Bold", "思源黑体";
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  margin-left: 10px;
  color: #9137f3;
}
.router {
  display: block;
  line-height: 50px;
  width: 190px;
  min-height: 50px;
  font-family: "思源黑体 Regular", "思源黑体";
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  margin: 10px auto;
  color: #333;
  border-radius: 5px;
}
/* .router:hover {
  background: #ecf5ff;
} */
.el-submenu .router1 {
  display: block;
  line-height: 50px;
  width: 190px;
  min-height: 50px;
  margin-left: 20px;
}

.tbimg {
  margin: 10px;
}
.img {
  margin: 0 20px;
}
.img1 {
  margin-right: 22px;
}
.title1 {
  font-size: 16px;
  font-family: "思源黑体 Regular", "思源黑体";
  font-weight: 400;
  font-style: normal;
  color: #333;
}
.el-menu-item:focus,
.el-menu-item:hover {
  outline: 0;
  background-color: transparent;
  color: #9137f3;
}

.hs {
  background: rgba(204, 153, 255, 1);
  color: #fff;
}
</style>